<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="./dist/umd/index.min.js"></script>
  </head>
  <body>
    <script>
      const json = {
        success: true,
        code: 200,
        msg: "请求成功",
        traceId: "110a04851165403bbd8d55431e2d29c2.772.17178055409972325",
        data: [
          {
            success: true,
            errorCode: null,
            resourceId: 2000000723,
            name: "采购",
            description: "采购",
            key: "/purchase",
            url: null,
            order: 1,
            children: [
              {
                success: true,
                errorCode: null,
                resourceId: 2000000724,
                name: "自营采购",
                description: "自营采购",
                key: "/purchase/self",
                url: null,
                order: 0,
                children: [
                  {
                    success: true,
                    errorCode: null,
                    resourceId: 2000000725,
                    name: "采购订单",
                    description: "采购订单",
                    key: "/purchase/self/list",
                    url: null,
                    order: 111,
                  },
                ],
              },
            ],
          },
        ],
      };
      
    //   JSONReplace.default.replace(json,{'data[0,3].name':'ss'},function(){
    //     return 'ss'
    //   });
    //   console.log('jsonjson',json)
    </script>
  </body>
</html>
